# -*- coding:utf-8 -*-
# @Time:2023/2/16 15:25
# @Author: cevent
# @name=urls

from django.conf.urls import url
from . import views

# 必须申明app_name，否则在主urls配置namespace不生效报错
app_name = 'verification'

urlpatterns = [
    # 1.获取图形验证码，传入UUID，多个字符和横杠组成
    url(r'^getCode/(?P<uuid>[\w-]+)/$', views.GetVerificationCode.as_view()),
    # 2.校验图形验证码是否正确
    url(r'^checkCode/(?P<mobile>[^1[3-9]\d{9})/(?P<code>[\w]+)/(?P<uuid>[\w-]+)/$',
        views.CheckVerificationCode.as_view()),
    # 3.获取短信验证码
    url(r'^sendSMS/(?P<mobile>1[3-9]\d{9})/$', views.SendShortMessage.as_view())
]
